package com.yb.guigu.pick.upload.service;

import com.yb.guigu.pick.core.bean.GuiguResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IUploadService {
    GuiguResult upload(MultipartFile file);

    GuiguResult uploadChunk(String fileMD5,Integer currentIndex, MultipartFile chunk);

    GuiguResult md5(MultipartFile file);

    GuiguResult mergeChunk(String fileMD5, Integer numOfChunk, String suffix);

    GuiguResult uploadChunkByChunkMd5(String chunkMd5, MultipartFile chunk);

    GuiguResult mergeChunk(List<String> chunkMD5s, String fileMD5, String suffix);
}
